package com.easyskool.utilfunction;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;
import java.util.Map;


public class NullObjects {

	public static boolean isNull(String input) {
		boolean response = false;
		if (input == null || input.isEmpty() || input.equalsIgnoreCase("null")) {
			response = true;
		}
		return response;
	}

	public static boolean isNull(List input) {
		boolean response = false;
		if (input == null || input.isEmpty() || input.size() == 0) {
			response = true;
		}
		return response;
	}



	public static boolean isNull(Map input) {
		boolean response = false;
		if (input == null || input.isEmpty() || input.size() == 0) {
			response = true;
		}
		return response;
	}

	public static boolean isNullMemcachedCollection(List input) {
		boolean response = false;
		if (input == null || input.isEmpty() || input.size() == 0) {
			response = true;
		} else if (input.size() == 1) {

		}
		return response;
	}

	public static boolean isNull(Collection input) {
		boolean response = false;
		if (input == null || input.isEmpty() || input.size() == 0) {
			response = true;
		}
		return response;
	}

	public static boolean isNull(BigDecimal input) {
		boolean response = false;

		if (input == null || input.compareTo(BigDecimal.ZERO) == 0) {
			response = true;
		}
		return response;
	}

	public static boolean isNull(Object input) {
		boolean response = false;
		if (input == null) {
			response = true;
		}
		return response;
	}

}
